home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / lib / X11 / app-defaults / MineSweeper < prev    next >
Text File  |  1994-08-04  |  4KB  |  159 lines

  1. !
  2. ! X11 Mine Sweeper
  3. !
  4. *allowShellResize:     True
  5. xms.wcChildren:     main
  6.  
  7. *main.wcCreate:         XmCreateMainWindow
  8. *main.wcChildren:       menuBar rc 
  9.  
  10. *menuBar.wcCreate:              XmCreateMenuBar
  11. *menuBar.wcPopups:              fileMenu sizeMenu helpMenu
  12. *menuBar.wcChildren:            file size help
  13. *menuBar.wcAfterChildren:       WcSetValue( this.menuHelpWidget: this.help )
  14.  
  15. ! Menubar contents
  16. *file.wcCreate:         XmCascadeButton
  17. *file.subMenuId:        ^*fileMenu
  18. *file.labelString:      File
  19. *file.mnemonic:         F
  20.  
  21. *size.wcCreate:         XmCascadeButton
  22. *size.subMenuId:        ^*sizeMenu
  23. *size.labelString:      Size
  24. *size.mnemonic:         S
  25.  
  26. *help.wcCreate:         XmCascadeButton
  27. *help.subMenuId:        ^*helpMenu
  28. *help.labelString:      Help
  29. *help.mnemonic:         H
  30.  
  31. ! Menubar items
  32. *fileMenu.wcCreate:     XmCreatePulldownMenu
  33. *fileMenu.wcChildren:   new, quit
  34.  
  35. *new.wcCreate:          XmPushButton
  36. *new.labelString:    New Game
  37. *new.mnemonic:        N
  38. *new.activateCallback:  NewGame
  39. *new.accelerator:    Ctrl<Key>N
  40. *new.acceleratorText:   Ctrl-N
  41.  
  42. *quit.wcCreate:         XmPushButton
  43. *quit.labelString:      Quit
  44. *quit.mnemonic:         Q
  45. *quit.activateCallback: WcExit
  46. *quit.accelerator:      Ctrl<Key>C
  47. *quit.acceleratorText:  Ctrl-C
  48.  
  49. ! Size options
  50. *sizeMenu.wcCreate:     XmCreatePulldownMenu
  51. *sizeMenu.wcChildren:    small, medium, large
  52.  
  53. *small.wcCreate:     XmCreatePushButton
  54. *small.labelString:    Small
  55. *small.activateCallback:    NewSize( 0 )
  56. *medium.wcCreate:     XmCreatePushButton
  57. *medium.labelString:    Medium
  58. *medium.activateCallback:    NewSize( 1 )
  59. *large.wcCreate:     XmCreatePushButton
  60. *large.labelString:    Large
  61. *large.activateCallback:    NewSize( 2 )
  62.  
  63.  
  64. ! Help items
  65. *helpMenu.wcCreate:     XmCreatePulldownMenu
  66. *helpMenu.wcPopups:     helpDialog
  67. *helpMenu.wcChildren:   mbHelp, gameHelp
  68. *mbHelp.wcCreate:               XmPushButton
  69. *mbHelp.labelString:            on Menu Bar
  70. *mbHelp.mnemonic:               M
  71. *mbHelp.activateCallback:       WcSetValue( \
  72.     ~*helpDialog.messageString: The menu bar... )\
  73.     WcManage( ~*helpDialog )
  74.  
  75. *gameHelp.wcCreate:               XmPushButton
  76. *gameHelp.labelString:            on MineSweeper Game
  77. *gameHelp.mnemonic:               M
  78. *gameHelp.activateCallback:       WcSetValue( \
  79.     ~*helpDialog.messageString: The Game MineSweeper... )\
  80.     WcManage( ~*helpDialog )
  81.  
  82. ! Used for all help, OK and Cancel unmanage.
  83. !
  84. *helpDialog.wcCreate:           XmCreateMessageDialog
  85. *helpDialog.helpCallback:       WcSetValue(     \
  86.     ~helpDialog.messageString: Sorry, no additional help is available. )
  87.  
  88. ! The main Minefield area 
  89. *rc.wcCreate:        XmpTable
  90. *rc.wcChildren:        rc2 Minefield
  91. *rc.layout:        rc2 0 0 h; Minefield 0 1; 
  92. *XmpTable.marginHeight: 2
  93. *XmpTable.marginWidth: 2
  94.  
  95. ! message area, for score, timer and smiley face.
  96. *rc2.wcCreate:         XmpTable
  97. *rc2.wcChildren:     score simle timer
  98. *rc2.layout:         score 0 0 h ; simle 1 0 ; timer 2 0;
  99.  
  100. *simle.wcCreate:    XmPushButton
  101. *simle.activateCallback:  NewGame
  102. *simle.labelType:    XmPIXMAP
  103. !*simle.labelPixmap:    smile
  104. *simle.recomputeSize:    False
  105. *simle.wcCallback:              CreateSmile()
  106.  
  107. *score.wcCreate:          XmLabel
  108. *score.labelString:     9999999
  109. *score.recomputeSize:   False
  110. *score.fontList:      -*-helvetica-*-r-*-*-*-180-*-*-*-*-*-*
  111.  
  112. *timer.wcCreate:        dclockWidgetClass
  113. *timer.seconds:     True
  114. *timer.width:         70 
  115. *timer.height:      40  
  116. *timer.borderWidth:      0  
  117.  
  118. *Minefield.wcCreate:            XmpTable
  119. *Minefield.wcCallback:              CreateMinefield()
  120.  
  121. !
  122. ! don't do the drag start actions, just these 
  123. !
  124. *Minefield.?.translations: #replace \n\
  125.     <BtnDown>:Arm()\n\
  126.     <BtnDown>,<BtnUp>:Activate() Disarm()
  127.  
  128. ! some more look and feel resources.
  129. !*Minefieldframe.marginHeight: 3
  130. !*Minefieldframe.marginWidth: 3
  131. !*Minefieldframe.shadowType: XmSHADOW_OUT
  132. !*Minefield.marginHeight: 2 
  133. !*Minefield.marginWidth:  2 
  134. *Minefield*highlightThickness: 0
  135.  
  136. ! make the buttons square to start with.
  137. *XmPushButton.width: 20
  138. *XmPushButton.height: 20
  139.  
  140. !
  141. ! These are the defaults built into the client.
  142. !*smallsize:        8x10
  143. !*mediumsize:        20x12
  144. !*largesize:        32x16
  145.  
  146. ! possible values:  small, medium, large
  147. *defaultsize:        medium
  148.  
  149. ! Print debug messages
  150. ! *debug: 1
  151.  
  152. ! how many bombs to make, default is saturation == 7
  153. ! NumBombs = width * height / saturation; 
  154. ! easy 
  155. ! *saturation : 10 
  156. ! hard 
  157. ! *saturation : 5 
  158. *saturation : 10 
  159.